import { onMounted, ref } from "vue";
import { getBannerAPI } from "@/apis/home";

export function useBanner(){
  let bannerList=ref([]);
  async function getBanner() {
      let res=await getBannerAPI(2);
      // console.log(res);
      bannerList.value=res.result;
  }
  getBanner();
  return {
    bannerList,
  }
}

